package com.lg.houtai.manager;

import java.util.HashMap;

import android.graphics.drawable.BitmapDrawable;

public class ImageManager {
	private static ImageManager instance=new ImageManager();
	private HashMap<String, BitmapDrawable> allAvatar;
	private HashMap<String, BitmapDrawable> allPicture;
	
	private ImageManager(){
		allAvatar=new HashMap<String, BitmapDrawable>();
		allPicture=new HashMap<String, BitmapDrawable>();
	}
	
	public static ImageManager getInstance(){
		return instance;
	}
	
	public BitmapDrawable getAvatar(String id){
		return allAvatar.get(id);
	}
	
	public void addAvatar(String id,BitmapDrawable bd){
		allAvatar.put(id, bd);
	}

	public void addPicture(String id, BitmapDrawable bd) {
		allPicture.put(id, bd);
	}

	public BitmapDrawable getPicture(String id) {
		return allPicture.get(id);
	}
}
